class UserAccount {

   
    String email
    String password
    String firstName
    String lastName

    static constraints = {
        email(email:true, unique: true, nullable: false, unique: true, blank: false)
        password(nullable: false, size:5..10, blank: false)
        firstName(nullable: false, blank: false)
        lastName(nullable: false, blank: false)
    }

  String toString(){
          firstName + " " + lastName
      }
  static mapping = {
    cache true
  }
     
}